package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OswDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("osw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("写信告诉我今天海是什么颜色  夜夜陪着你的海心情又如何");
        osw.write("灰色是不想说 蓝色是犹豫");
        System.out.println("写出完毕");
        osw.close();


    }
}
